<template>
        
        <van-nav-bar :title="props.title"  
        fixed
        :placeholder="true"
        v-if="
        route.name == 'index' ||
        route.name == 'list' ||
        route.name == 'shop' ||
        route.name == 'my' 
        "
        />
        <van-nav-bar 
        v-else
        :title="props.title" 
        fixed
        :placeholder="true"
        left-text="返回"
        left-arrow 
        @click-left="onClickLeft"
        />
        <div style="height: 5.3rem;"></div>
</template>

<script setup>
const props=defineProps(['title'])
 const onClickLeft = () => history.back();
import { useRoute, useRouter } from 'vue-router'

const router = useRouter()
const route = useRoute()
</script>

<style lang="scss" scoped>

</style>